Program to print numbers from N to 1 in reverse order